/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[遇见知启蒙，邂逅框架梦]
 * 
 * https://zhiqim.org/project/zhiqim_components/zhiqim_manager.htm
 *
 * Zhiqim Manager is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *          http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */
package org.zhiqim.manager;

import org.zhiqim.httpd.context.ZmlContextConstants;
import org.zhiqim.kernel.annotation.AnAlias;
import org.zhiqim.kernel.constants.ZhiqimConstants;

/**
 * 知启蒙管理台常量定义
 *
 * @version v1.0.0 @author zhichenggang 2017-1-2 新建与整理
 */
@AnAlias("ZmrConstants")
public interface ZmrConstants extends ZmlContextConstants, ZhiqimConstants
{
    public static final String ZMR_NAME                     = "zhiqim.manager";
    public static final String ZMR_PATH                     = "zhiqim_manager";
    public static final String ZMR_PASSWORDER_DEFAULT       = "org.zhiqim.manager.ZmrPassworder";
    public static final String ZMR_PASSWORD                 = "zhiqim@2015";
    public static final String ZMR_PAGE_SIZE                = "zmr_page_size";
    public static final String ZMR_MENU_SQL                 = "zmr_menu_sql";
    public static final String ZMR_PASSWORDER               = "zmr.passworder";
    public static final String ZMR_ORM                      = "zmr.orm";
    public static final String ZMR_ORM_OPR                  = "zmr.orm.opr";
    public static final String ZMR_BOOTSTRAP                = ZmrBootstrap.class.getName();
    
    /**********************************************************************************/
    //参数表
    /**********************************************************************************/
    
    public static final String ZMR_THEME_INDEX              = "themeIndex";
    public static final String ZMR_THEME_MAIN               = "themeMain";
    public static final String ZMR_THEME_FRAME              = "themeFrame";
    public static final String ZMR_HAS_MANAGE_LOGIN         = "hasManageLogin";
    public static final String ZMR_HAS_VERIFICATION_CODE    = "hasVerificationCode";
    public static final String ZMR_HAS_REMEMBER_CODE        = "hasRememberCode";
    public static final String ZMR_HAS_REMEMBER_PASS        = "hasRememberPass";
    public static final String ZMR_MAIN_URL                 = "mainUrl";
    public static final String ZMR_REMAIN_LOG_DAY           = "remainLogDay";
    public static final String ZMR_OPERATOR_DEPT_ALL_RULE   = "operatorDeptAllRule";
    public static final String ZMR_CDN_PATH                 = "cdnPath";
    public static final String ZMR_PUBLIC_KEY               = "publicKey";
    public static final String ZMR_PRIVATE_KEY              = "privateKey";
    
    public static final String ZMR_MAIN_URL_DEFAULT         = "/${zhiqim_manager}/main.htm";
    public static final String ZMR_MAIN_URL_WELCOME         = "/${zhiqim_manager}/welcome.htm";
    public static final String ZMR_TEMPLATE_INNER           = "/ztmpl/zhiqim_manager/inner.htm";
    
    /**********************************************************************************/
    //主题常量
    /**********************************************************************************/
    
    public static final String ZMR_THEME_00_DEFAULT         = "00_default";
    public static final String ZMR_THEME_01_CLASSIC         = "01_classic";
    public static final String ZMR_THEME_02_CONCISE         = "02_concise";
    public static final String ZMR_THEME_03_ELEGANT         = "03_elegant";
    public static final String ZMR_THEME_04_FRESH           = "04_fresh";
    public static final String ZMR_THEME_05_FLATWISE        = "05_flatwise";
    
    /**********************************************************************************/
    //会话键
    /**********************************************************************************/
    
    public static final String ZMR_SESSION_USER_DEPT_ID     = "zmr_session_user_dept_id";
    public static final String ZMR_SESSION_USER_ROLE_ID     = "zmr_session_user_role_id";
    
    /**********************************************************************************/
    //头像字段
    /**********************************************************************************/
    
    public static final String AVATAR_PREFIX                = "/org/zhiqim/manager/avatar/";
    public static final String IMAGE_DATA_PNG_BASE64        = "data:image/png;base64,"; 
}
